import Vue from 'vue'
import Router from 'vue-router'
import Index from "../components/index"
import shouye1 from "../components/shouye1";
import shouye2 from "../components/shouye2";
import Sichuan_Cuisine from "../components/Sichuan_Cuisine";
import Xiang_Cuisine from "../components/Xiang_Cuisine";
import MessageBoard from "../components/MessageBoard";
import MessageBoard2 from "../components/MessageBoard2";
import ChineseMeal from "../components/ChineseMeal";
import WesternFood from "../components/WesternFood";
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'Index',
      component:Index,
      children:[
        {
          path:'/shouye1',
          component:shouye1
        },
        {
          path:'/shouye2',
          component:shouye2
        },
        {
          path:'/Sichuan_Cuisine',
          component: Sichuan_Cuisine
        },
        {
          path:'/Xiang_Cuisine',
          component: Xiang_Cuisine
        },
        {
          path:'/MessageBoard',
          component:MessageBoard
        },
        {
          path:'/MessageBoard2',
          component:MessageBoard2
        },
        {
          path:'/ChineseMeal',
          component:ChineseMeal
        },
        {
          path:'/WesternFood',
          component:WesternFood
        }
      ]
    },
  ]
})
